import React from 'react';

import { Config } from '../types';

import { Lazy } from '@/components';

import {
  WechatOutlined,
  AppstoreAddOutlined
} from '@ant-design/icons';

export default [
  {
    exact: true,
    hideMenu: true,
    path: '/home/app',
    redirect: '/home/app/own'
  },
  {
    exact: true,
    title: '自建应用',
    path: '/home/app/own',
    icon: <AppstoreAddOutlined />,
    component: Lazy(() => import('../../pages/app/own'))
  },
  {
    title: '微信小程序',
    path: '/home/app/wechat',
    icon: <WechatOutlined />,
    component: Lazy(() => import('../../pages/home'))
  },
  {
    title: '测试页面',
    path: '/home/app/test',
    icon: <WechatOutlined />,
    component: Lazy(() => import('../../pages/home/test'))
  }
] as Config[];
